package com.yun.test.springmybatis;

import com.yun.test.springmybatis.bean.User;
import com.yun.test.springmybatis.mapper.UserMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

/**
 * @Author: fxy
 * @Date: 2023/02/09/14:08
 * @Description:
 */

public class SpringMybatis {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyBatisConfig.class);
		UserMapper bean = context.getBean(UserMapper.class);
		List<User> users = bean.selectUser();
		System.out.println(users);
	}
}
